<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2016/12/28
  Time: 9:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
%>
<html>
<head>
    <title>Question_Paper</title>
</head>
<body>
<c:forEach items="#{chooseMap}" var="choose" varStatus="id" begin="1">
    <c:if test="${id.index <= 3}">
        ${id.index}.
        <c:forTokens items="${choose.value}" delims="；;" var="items">
            <c:if test="${fn:contains(items,'A') || fn:contains(items, 'B')
                    || fn:contains(items, 'C') || fn:contains(items, 'D')}">
                <input type="radio" name="answer">
            </c:if>
            <c:out value="${items}"></c:out><br>
        </c:forTokens><br>
    </c:if>
</c:forEach><br>
<c:forEach items="#{judgeMap}" var="judge" varStatus="id" begin="1">
    <c:if test="${id.index <= 3}">
        ${id.index}.
        <c:forTokens items="${judge.value}" delims="；;" var="items">
            <c:if test="${fn:contains(items, 'T') || fn:contains(items, 'F')}">
                <input type="radio" name="answer">
            </c:if>
            <c:out value="${items}"></c:out><br>
        </c:forTokens><br>
    </c:if>
</c:forEach><br>
</body>
</html>
